from django.db import models

# Create your models here.
class ArgValueSubmit(models.Model):
	route = models.CharField(max_length = 200)
	arg_name = models.CharField(max_length = 200)
	add_date = models.DateTimeField(auto_now_add = True)
	source_ip = models.GenericIPAddressField()
	type_judgement = models.CharField(max_length = 20,default = 'default')
	value = models.CharField(max_length = 200)
	value_len = models.IntegerField()
	confirmed = models.CharField(max_length = 20,default='false')

class ArgsName(models.Model):
	route = models.CharField(max_length = 200)
	arg_name = models.CharField(max_length = 200)

class xssInput(models.Model):
	title = models.CharField(max_length = 200)
	value = models.TextField()
	submit_date = models.DateTimeField(auto_now_add = True)
	model_one_summary = models.CharField(max_length = 80,default='svm')
	model_two_summary = models.CharField(max_length = 80,default='hmm')
	model_one_target = models.TextField()
	model_two_target = models.TextField()
	state = models.CharField(max_length = 20,default='unChecked')